<%-- 
    Document   : index
    Created on : Jul 25, 2012, 9:40:43 AM
    Author     : Student
--%>

<%@page import="bean.Book"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>   

        <jsp:useBean id="buku" class="bean.Book" scope="page"/>
        <jsp:setProperty name="buku" property="judul" value="Petualangan Conan"/>
        <jsp:setProperty name="buku" property="description" value="Keterangan Buku"/>                
        <jsp:setProperty name="buku" property="disc" value="20"/>
        <jsp:setProperty name="buku" property="price" value="1000"/>

        <%
            Book book = (Book) pageContext.getAttribute("buku");
            out.println(book.getJudul());
        %>
    </body>
</html>
